package com.example.filefusion.dto;

public class FileInfo {
    private String name;
    private boolean isDirectory;
    private String id; // 对于文件夹，这将是文件夹路径；对于文件，这将是文件名

    public FileInfo() {
    }

    public FileInfo(String name, boolean isDirectory, String id) {
        this.name = name;
        this.isDirectory = isDirectory;
        this.id = id;
    }

    // Getters and Setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isDirectory() {
        return isDirectory;
    }

    public void setDirectory(boolean directory) {
        isDirectory = directory;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}